<div class="layui-colla-item">
	<h2 class="layui-colla-title">分配用户</h2>
	<div class="layui-colla-content layui-show">
		<div class="layui-form-item">
			<div class="layui-inline">
			    <label class="layui-form-label">用户：</label>
			    <div class="layui-input-inline" style="width: 310px;">
			    	<select name="userid" id="userid" multiple="multiple" style="width:100%;" lay-filter="userid" lay-search>
			    		<#if userList?? && userList?size gt 0>
			    			<#list userList as suser>
			    				<#if (reportauth?? && reportauth.authuser!='' && !reportauth.authuser?contains(suser.id)) || !reportauth?? || reportauth.authuser==''>
			    				<option value="${suser.id!''}">${suser.username!''}</option>
			    				</#if>
			    			</#list>
			    		</#if>
                    </select>
			    </div>
	    	</div>
	 	</div>
	</div>
</div>
<div class="layui-colla-item">
	<h2 class="layui-colla-title">已授权用户列表</h2>
	<div class="layui-colla-content layui-show" id="distable">
		<#include "/apps/business/report/pbreport/auth/disuserlist.html">
	</div>
</div>
<script type="text/javascript">
//Demo
layui.use('form', function(){
  var form = layui.form;
  form.render(); //更新全部
});
var multiSelect;
layui.use(['multiSelect'], function() {
    multiSelect = layui.multiSelect;
    multiSelect.render('select', 'userid');
});
</script>